package com.ruoyi.trolly.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.shop.domain.Shop;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 购物车管理对象 user_trolly
 * 
 * @author ruoyi
 * @date 2025-05-29
 */
public class UserTrolly extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private Long orderId;

    /** 商品id */
    @Excel(name = "商品id")
    private Long shopId;

    /** 商品数量 */
    @Excel(name = "商品数量")
    private Long shopNum;

    /** 商品详情 */
    @Excel(name = "商品详情")
    @TableField(exist = false)
    private Shop shop;

    /**  */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updetaTime;

    public Shop getShop() {
        return shop;
    }

    public void setShop(Shop shop) {
        this.shop = shop;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }

    public void setShopId(Long shopId) 
    {
        this.shopId = shopId;
    }

    public Long getShopId() 
    {
        return shopId;
    }

    public void setShopNum(Long shopNum) 
    {
        this.shopNum = shopNum;
    }

    public Long getShopNum() 
    {
        return shopNum;
    }

    public void setUpdetaTime(Date updetaTime) 
    {
        this.updetaTime = updetaTime;
    }

    public Date getUpdetaTime() 
    {
        return updetaTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("orderId", getOrderId())
            .append("shopId", getShopId())
            .append("shopNum", getShopNum())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updetaTime", getUpdetaTime())
            .toString();
    }
}
